package com.dayu.recovery.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dayu.common.annotation.Excel;
import com.dayu.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 打理日志对象 recovery_arrange
 *
 * @author HK
 * @date 2021-04-28
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RecoveryArrange extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 打理编号 */
    private Long arrangeId;

    @Excel( name = "仓库名称")
    private String stockName;
    /** 商品编码 */
    @Excel(name = "商品编码")
    private String goodsId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 类型 */
    @Excel(name = "类型", dictType = "goods_handle_type")
    private Integer type;

    /** 状态 */
    private Integer status;

    @Excel(name = "创建人")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd")
    private Date createTime;

    @Excel(name = "备注")
    private String remark;

    /*账单数据*/
    @Excel(name = "账单名称")
    private String billName;

    @Excel(name = "串号")
    private String goodsSn;

    /** 成本价 */
    @Excel(name = "成本价")
    private BigDecimal costPrice;

    /** 销售价 */
    @Excel(name = "销售价")
    private BigDecimal sellPrice;

    /** 利润 */
    @Excel(name = "利润")
    private BigDecimal profit;

    @Excel(name = "买家")
    private String buyers;

    @Excel(name = "账单id")
    private Long billId;
}
